For all supported image formats the GroupDocs.Metadata API allows extracting common image properties such as width and height, MIME type, byte order, etc. Please see the code snippet below for more information on the feature.
Load an image Extract the root Metadata package Use the FileType property to obtain file format information AdvancedUsage.ManagingMetadataForSpecificFormats.Image.ImageReadFileFormatProperties
using (MetadataMetadata = new Metadata(Constants.InputPng)) { var root = Metadata.GetRootPackage(); Console.WriteLine(root.FileType.FileFormat); Console.WriteLine(root.FileType.ByteOrder); Console.WriteLine(root.FileType.MimeType); Console.WriteLine(root.FileType.Extension); Console.WriteLine(root.FileType.Width); Console.WriteLine(root.FileType.Height); } More resources GitHub examples You may easily run the code above and see the feature in action in our GitHub examples:...Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
This article shows how to save a file to the specified stream in Java...Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
This example demonstrates how to load a file of some particular format.
advanced_usage.loading_files.LoadingFileOfSpecificFormat
JavaScript try { var loadOptions = new LoadOptions(FileFormat.Spreadsheet); const Metadata = new groupdocs.Metadata.Metadata("input.xls", loadOptions); var root = Metadata.getRootPackageGeneric(); } More resources Advanced usage topics To learn more about library features and get familiar how to manage Metadata and more, please refer to theadvanced usage section.
GitHub examples You may easily run the code above and see the feature in action in our GitHub examples:...Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
Learn about managing Metadata for Video formats....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
This example demonstrates how to load a file from a stream....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
This article shows how to save the modified content to the underlying source using GroupDocs.Metadata for Python via .NET....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
This article shows how to save a document to a specified location on a local disk using GroupDocs.Metadata for Python via .NET....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
This code snippet demonstrates how to extract information about known properties that can be encountered in a particular package....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...